package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.TravelCommend;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.TravelCommendQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;


public interface ITravelCommendService {


    /**
     * admin端分页及排序
     * @param qo
     * @return
     */
    PageInfo<TravelCommend> query(QueryObject qo);


    /**
     * 保存推荐
     * @param travelCommend
     */
    void save(TravelCommend travelCommend);

    /**
     * 修改推荐
     * @param travelCommend
     */
    void update(TravelCommend travelCommend);

    /**
     * app端的分页及查询
     * @param qo
     * @return
     */
    PageInfo queryForApp(TravelCommendQueryObject qo);

    List<TravelCommend> selectAll(Long id);
}
